#!/bin/bash
apk_file="$1"
pkg="$2"
echo $pkg
echo "反编译apk"
./apktool d $apk_file.apk
echo "注入log"
python inject_log.py $apk_file/smali/$pkg
echo "注入log工具" 
cp -r smali $apk_file
echo "打包apk"
./apktool b $apk_file -o inject_log_$apk_file.apk
echo "签名"
./auto-sign/sign.sh inject_log_$apk_file
echo "完成"
